class Task < ActiveRecord::Base
   belongs_to :project
   belongs_to :user # responsible of the task
   belongs_to :task # so we can have tasks dependant of others
   has_many :notes, :dependent => :destroy
   has_many :tasks, :dependent => :destroy

   acts_as_taggable

   #validates_presence_of :project_id, :title, :on=>:update
   
end
